import request from './request'
import type { CommonParams, CreateDictDTO, Result } from './jackpot-dto'
export const WaterApi = {
    createDict(params: CreateDictDTO): Promise<Result<any>> {
        return request.post('/water/createDict', params)
    },
    getDictList(params: CommonParams): Promise<Result<any>> {
        return request.post('/water/getDictList', params)
    },
    deleteDict(params: { dictId: string }): Promise<Result<any>> {
        return request.post('/water/deleteDict', params)
    },
    recharge(params: { dictId: string, amount: number }): Promise<Result<any>> {
        return request.post('/water/recharge', params)
    }
}
